﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace A2DFramework.EventService.DistributeEventBus.Server
{
    class ServerConfig
    {
        public static int Port 
        {
            get
            {
                string o = ConfigurationManager.AppSettings["Port"];
                if (o == null || o == string.Empty)
                    throw new Exception("Please specify event server's listening port.");

                return int.Parse(o);
            }
        }
    }
}
